export interface  IBasicType{
    code: number
    message: string
    traceId: string
    type: string
}
//医院下拉列表数据
export interface IHospitalData extends IBasicType{
    result: IHospitalResultType[]
} 
export interface IHospitalResultType {
    address: any
    contact: string
    hospitalName: string
    id: string
    phone: string
}
//获取患者列表参数
export interface IPatientParams {
    patientName: string
    phone: string
    hospitalId: string
    pageSize: number
    pageNum: number
    date?:string
    startDate:string
    endDate:string
}
//开始测评参数
export interface ISendDataParams{
    userName:string
    age:number
    sex:string
}
//新增患者信息参数
export interface IAddPatientParams {
    patientName: string
    phone: string
    idCard: string
    gender: number |string
    birth: string
    education: string |number
    ethnicGroup: string |number
    bloodType: string |number
    clinicNumber: string |number
    maritalStatus: string |number
    occupation: string |number
    hospitalId: string |number
    allergyHistory: string
    exposureHistory: string
    pastHistory: string
    familyHistory: string
    geneticHistory: string
    disabilityHistory: string
    remark: string
}
//编辑患者信息参数
export interface IUpdatePatientParams extends IAddPatientParams {
    patientId: string
}
//患者列表
export interface  IPatientData extends IBasicType {
    result: IPatientResultType
}
interface IPatientResultType {
    countId: null
    current: string
    hitCount: boolean
    maxLimiy: null
    optimizeCountSql: boolean
    orders: []
    pages: string
    records: IPatientListRecodesType[]
    searchCount: boolean
    size: string
    total: string
}
export interface IPatientListRecodesType  {
    age: number
    doctorName: string
    gender: number |string
    genderDesc: string
    hospitalName: string
    id: string
    patientName: string
    phone: string
    startTime: string
    remark: string
}
export interface IPatientMessageData extends IBasicType{
    result: IPatientMessageResult
}
export interface  IPatientMessageResult{
    patientName: string
    gender: number
    birth: string
    idCard: string
    maritalStatus: number|string
    phone: string
    education: number |string
    ethnicGroup: number |string
    bloodType: number |string
    occupation: number |string
    allergyHistory: string
    disabilityHistory: string
    exposureHistory: string
    familyHistory: string
    geneticHistory: string
    pastHistory: string
    remark: string
}
//患者健康数据
export interface IHealthType{
    name:string
    checked:boolean
    remark?:string
}


